<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/16 0016
 * Time: 下午 2:36
 */

namespace App\Eloquent\Ygt;

use Framework\BaseClass\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Eloquent\Ygt\DbEloquent;
use DB;

class Branch extends DbEloquent
{
    use SoftDeletes;
    protected $table = 'ygt_branch';
    protected $dates = ['deleted_at'];
    protected $dateFormat = 'U';

    public function plate(){
        return $this->belongsTo('App\Eloquent\Ygt\Plate','plate_id');
    }
}